<p class="Paragraph">Following is a general introduction to the <help:productname>%PRODUCTNAME</help:productname> Basic Editor.</p>
</help:to-be-embedded>
<p class="Paragraph">The Basic Editor provides the standard editing functions you are familiar with when working in a text document. It supports the functions of the <span class="T1">Edit</span> menu (Cut, Delete, Paste), the ability to select text with the Shift key, as well as cursor positioning functions (e.g., moving from word to word with <help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="MAC">(Option)</help:case><help:default>(Ctrl)</help:default></help:switch> and the arrow keys).</p>
<p class="Head2">Navigating in a Project</p>
<p class="Paragraph"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic several functions that enable you to navigate your way through complex <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic projects. The following sections describe these aids in detail:</p>
<p class="Head3">Using the Library List Box in the <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic Toolbar</p>
<p class="Paragraph">In the <span class="T1">Library</span> list box at the left of the toolbar, you can click on any entry to switch to the first module of a corresponding library.</p>
<p class="Head3">Using the Object Catalog to Move within a <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic Project</p>
<p class="Paragraph">The object catalog aids you in navigating within complex projects consisting of several libraries and corresponding modules. Proceed as follows:</p>
<ul class="L1">
<li class="">
<p class="P2">Click the <span class="T1">Object Catalog</span> icon in the toolbar.</p>
<p class="TextInTable">The object catalog remains visible even when you click back in the Editor window.</p>
</span></th></tr></table>
<p class="Paragraph"/>
<ul class="L2">
<li class="">
<p class="P3">In the dialog, you will find a list of all existing objects. Many objects (documents, templates, the application itself and the respective libraries and modules) contain subitems that you can double-click to hide or show.</p>
</li>
<li class="">
<p class="P3">To display a certain module in the Editor or to position the cursor directly in a specific SUB or FUNCTION of a module, select the corresponding entry and click <span class="T1">Show</span>.</p>
</li>
<li class="">
<p class="P3">Close the object catalog by clicking the (x) icon in the title bar.</p>
</li>
</ul>
<p class="Head2">Saving and Loading Basic Source Text <help:key-word value="Export; Basic program code" tag="kw66459_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="Basic program code; Export" tag="kw66459_4" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="Import; Basic program code" tag="kw66459_3" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="Basic program code; Import" tag="kw66459_2" xmlns:help="http://openoffice.org/2000/help"/></p>
<p class="Paragraph"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic allows you to export Basic program code to other programming systems, or to import Basic program code in ASCII format.</p>
<p class="TextInTable">Exporting of Basic dialogs is not possible.</p>
</span></th></tr></table>
<p class="Paragraph"/>
<p class="Head3">This is how you can save the program code of a module as ASCII text</p>
<ul class="L3">
<li class="">
<p class="P4">From the object catalog, select the program code of a module that you want to export as ASCII text.</p>
</li>
<li class="">
<p class="P4">Click the <span class="T1">Save Source As</span> icon in the Macro toolbar. <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic opens a file selection dialog, where you can define a file name.</p>
</li>
<li class="">
<p class="P4">Enter the path specification and file name <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>and click <span class="T1">OK</span> to save the file.</p>
</li>
</ul>
<p class="Head3">How to insert ASCII program code at the cursor position</p>
<ul class="L4">
<li class="">
<p class="P5">From the object catalog, select the program code of the module that you want to import as ASCII text.</p>
</li>
<li class="">
<p class="P5">Position the cursor where you want to insert the program code.</p>
</li>
</ul>
<p class="Paragraph"><span class="T1">Click the Insert Source Text</span> icon in the Macro toolbar. In the dialog that follows, select the path and name of the file containing the program code and click <span class="T1">OK</span>.</p>